package com.zhisheng.service.impl;

import com.zhisheng.mapper.DeptMapper;
import com.zhisheng.pojo.Dept;
import com.zhisheng.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    //查询所有部门
    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> selectAll() {
        return deptMapper.selectAll();
    }
    @Override
    public int deleteById(Integer id) {
        return deptMapper.deleteById(id);
    }
}
